package com.bort.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("t_game_log")
public class TGameLog {

    @TableId("id")
    private Integer id;

    @TableField("order_id")
    private Integer orderId;

    @TableField("desk_id")
    private Integer deskId;

    @TableField("price")
    private BigDecimal price;

    @TableField("income")
    private BigDecimal income;

    @TableField("amount")
    private BigDecimal amount;

    @TableField("total_time")
    private Integer totalTime;

    @TableField("player")
    private String player;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;

    @TableField("create_user_id")
    private Integer createUserId;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("end_time")
    private Date endTime;

    @TableField("status")
    private String status;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("last_tag")
    private Integer lastTag;

    @TableField("time_limit")
    private Integer timeLimit;

    @TableField(exist = false)
    private String assistant;
}